package lekcja2.zad8;

public class Kwadrat {
    private int bok;

    public Kwadrat(int bok) {
        this.bok = bok;
    }

    public int pole() {
        return bok * bok;
    }

    public int obwod() {
        return 4 * bok;
    }

    public String toString() {
        return "Kwadrat[bok = " + bok + "]";
    }
}
